package com.geekstudy.week11;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@EnableAutoConfiguration

/**
 *
 *
 * https://docs.spring.io/spring-boot/docs/current/api/org/springframework/boot/WebApplicationType.html
 *
 *
 */
public class Week11DemoMain {

    final static Logger logger = LoggerFactory.getLogger(Week11DemoMain.class);



    public static void main(String[] args) {
        // this.webApplicationType = WebApplicationType.deduceFromClasspath();
        // this.webApplicationType = NONE

        ConfigurableApplicationContext configurableApplicationContext = SpringApplication.run(Week11DemoMain.class, args);
        logger.info("beanCount:{} ", configurableApplicationContext.getBeanDefinitionCount());





    }
}
